package com.ryzx.common.status;

import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;



@Component
public class ServiceRunStatus implements ApplicationListener<ApplicationStartedEvent> {
    private static boolean isRun=false;
    public static boolean isRun(){
        return isRun;
    }

    @Override
    public void onApplicationEvent(ApplicationStartedEvent event) {
        isRun=true;
    }
}